package com.ruoyi.bizsys.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.utils.StringUtils;
import lombok.Data;

import java.util.Date;

@Data
public class FinancialManagement {
    private String userId;
    private String customerNo;
    private String phoneNumber;
    private String clientName;
    private Double withdrawalAmount;
    private Double serviceCharge;
    private String bankAccount;

    private String firstName;
    private String middleName;
    private String lastName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date applicationTime;
    private String updateName;
    private String status;
    private String remark;

    private String serialNo;

    private String orderType;
    public String getFullName() {
        String firstName = "";
        String middleName = "";
        String lastName = "";
        if (StringUtils.isNotBlank(this.firstName)) {
            firstName = this.firstName + " ";
        }
        if (StringUtils.isNotBlank(this.middleName)) {
            middleName = this.middleName + " ";
        }
        if (StringUtils.isNotBlank(this.lastName)) {
            lastName = this.lastName;
        }
        return (firstName + middleName + lastName).trim();
    }

}
